<!--
	advice list !
-->
<h3>{{rootColumnName}}
   <small>{{rootColumnPrompt}}</small>
</h3>
<div  ng-controller="adviceListCtrl" class="panel panel-default">
	<div class="panel-heading">
		<form class="form-inline">
			<div class="form-group">
				<label for="">{{SelectName}} : </label>
				<select class="custom-css form-control"  ng-model="adviceSelectValue" ng-change="dataChange()" ng-options="adviceSelectValue._value_ for adviceSelectValue in adviceTypes" >
				</select>
				<label for="searchInput"></label>
				<input type="text" ng-keyup="dataEvent($event)" ng-model="searchKey" class="form-control" id="searchInput"  style="width: 400px" placeholder="{{searchplaceholder}}">
			</div>
		</form>
	</div>
	<div class="panel-body " ng-class="loading?'whirl standard':'' " style="border-top: 1px solid #CFDBE2;">
		<table class="table table-striped table-condensed">
			<thead>
				<tr>
              		<th><i class="icon-flag"></i> 用户ID</th>
              		<th class="hidden-phone"><i class="icon-user"></i> 名字</th>
              		<th><i class="icon-call-end"></i> 手机号码</th>
              		<th><i class="icon-clock"></i> 更新时间</th>
              		<th><i class="icon-doc"></i> 内容简介</th>
              		<th><i class="icon-doc"></i> 处理状态</th>
              		<th><i class="icon-wrench"></i> 操作</th>
          		</tr>
			</thead>
			<tbody>
				<!-- repeat begin -->
              	<tr ng-repeat="adviceItem in adviceList ">
              		<!-- 没有单独的用户详情接口，所以在除用户列表以外的地方无法进入用户详情 -->
                  	<td>{{adviceItem.user.userId}}</td>
                  	<td>{{adviceItem.user.name | null_value_filter}}</td>
                  	<td>{{adviceItem.contact | null_value_filter}}</td>
                  	<td>{{adviceItem.createTime}}</td>
                  	<td title="{{adviceItem.advice}}">{{adviceItem.advice | limitTo:"20" |null_value_filter}}</td>
					<td>{{adviceItem.status | boolean_adviceStatus}}</td>
                  	<td>
                      	<a tooltip="查看" tooltip-trigger="mouseenter" ui-sref="cms.adviceDetail({ adviceId : adviceItem.adviceId,size : turnPage.itemsPerPage,page : turnPage.currentPage,searchKey : searchKey})" class="btn btn-xs btn-success"><i class="icon-magnifier"></i></a>
                  	</td>
             	 </tr>
             	 <!-- repeat end -->
			</tbody>
		</table>
		<p style="display: inline-block; margin:21px 0;height: 30px;line-height: 30px;"> 显示 <strong>{{turnPage.totalItems}}</strong> 条中的 <strong>{{turnPage.itemsPerPage*(turnPage.currentPage-1)+1}}-{{ToNum}}</strong> 条</p>
		<pagination class="pull-right" first-text="{{turnPage.firstText}}" previous-text="{{turnPage.previousText}}" next-text="{{turnPage.nextText}}" last-text="{{turnPage.lastText}}" total-items="turnPage.totalItems" ng-model="turnPage.currentPage" max-size="turnPage.maxSize"
			num-pages="numPages" boundary-links="true" ng-change="dataChange()" class="pagination-sm">
		</pagination>
	</div>
</div>